#region Summary

// 
// Owner : JackieHan 
// 
// Solution : LearnSolution 
// 
// Project : JackieHan.NHibernate3.Repository
// 
// File : SetOfComponentsRepository.cs
// 
// CopyRight : Copyright © 2010-2011 Skomart Corporation, All Rights Reserved 
// 
// Summary : SetOfComponents实体数据库操作
// 
// History : 
//			2010-09-15 13:03:00	    Create 
// 

#endregion

#region Using

using System;
using System.Collections.Generic;
using JackieHan.NHibernate3.Domain;
using NHibernate;

#endregion

namespace JackieHan.NHibernate3.Repository
{
    /// <summary> 
    /// SetOfComponents实体数据库操作
    /// </summary>
    public class SetOfComponentsRepository
    {
        public void Save(SetOfComponents item)
        {
            using (ISession session = NHSessionFactory.SessionFactory.OpenSession())
            {
                using (ITransaction trans = session.BeginTransaction())
                {
                    session.Save(item);
                    trans.Commit();
                }
            }
        }
    }
}